/* 
 * File:   Glyphs.h
 * Author: cjjonker
 *
 * Created on 20 december 2012, 16:06
 */

#ifndef GLYPHS_H
#define	GLYPHS_H

#include "Visualizer.h"

class Glyphs: public Visualizer {
    
    int d_xGridSize;
    int d_yGridSize;
    
    public:
        Glyphs();
        void draw(int winW, int winH);
        
        void setXGridSize(int xs);
        void setYGridSize(int ys);
        
        int getXGridSize() const;
        int getYGridSize() const;
    
    private:        
        enum Appearance
        {
            Hedgehog, Triangle, Cone, AppearancesCount
        };
        
        std::vector<std::string> d_dataset_names;
        
        void drawGlyph(double x, double y, Vector2f dat);
        void drawHedgehog(double x, double y, Vector2f dat);
        void drawTriangle(double x, double y, Vector2f dat);
        void drawCone(double x, double y, Vector2f dat);

};

inline void Glyphs::setXGridSize(int xs)
{
    d_xGridSize = xs;
}

inline void Glyphs::setYGridSize(int ys)
{
    d_yGridSize = ys;
}

inline int Glyphs::getXGridSize() const
{
    return d_xGridSize;
}

inline int Glyphs::getYGridSize() const
{
    return d_yGridSize;
}




#endif	/* GLYPHS_H */

